#ifndef GITLEVENT_H
#define GITLEVENT_H
#include <QString>
#include <QObject>
#include "gitldef.h"
#include "gitlevtdata.h"

class GitlModual;

enum EVENT_TYPE
{
    BLOCKING,      ///
    NON_BLOCKING   ///
};

class GitlEvent
{
public:
    GitlEvent( GitlModual* pcSource, const QString& strDstName, const QString& strEvtName, const EVENT_TYPE eEvtType = BLOCKING );
    GitlEvent();


    ADD_CLASS_FIELD(EVENT_TYPE, eEvtType, getEvtType, setEvtType)
    ADD_CLASS_FIELD_NOSETTER(QString, strEvtName, getEvtName)
    ADD_CLASS_FIELD_NOSETTER(QString, strSrcName, getSrcName)
    ADD_CLASS_FIELD(QString, strDstName, getDstName, setDstName)
    ADD_CLASS_FIELD_NOSETTER(GitlEvtData, cEvtData, getEvtData)
};

#endif // GITLEVENT_H
